package ly.gupao.edu.designPattern.adapter.objectAdapter;

import ly.gupao.edu.designPattern.adapter.Adaptee;

public class AdapterTest {

    public static void main(String[] args) {
        /**
         * 编写测试类，实例化适配器对象，通过适配器去掉用接口与类中的方法，都可以进行调用
         */
        Adaptee adaptee = new Adaptee();
        Adapter adapter = new Adapter(adaptee);
        adapter.method2();
        adapter.adaptee.method1();
    }
}
